 /**
 * v-hasPermi 操作权限处理
 * Copyright (c) 2019 ruoyi
 */
 
import store from '@/store'

export default {
  inserted(el, binding, vnode) {
    const { value } = binding
    const permissions = localStorage.getItem("permissions")
    if (permissions.indexOf(value)!=-1) {

    } else {
      el.parentNode && el.parentNode.removeChild(el)
    }
  }
}
